/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upf.userinterface.impl;

import edu.upf.content.DescriptionContent;
import edu.upf.utils.LogSystem;
import edu.upf.userinterface.UserInterface;

/**
 * Class that presents a text interface for the media sharing software
 * @author netjois
 */
public class TextInterface implements UserInterface {

    private LogSystem log;

    /**
     * Constructor, initializes the needed variables for a correct functioning
     * of the text user interface
     */
    public TextInterface(){
        log = new LogSystem(TextInterface.class);
    }

    @Override
    public void addUserToList(String user) {
        log.addDebugLog("Adding user"+user);
    }

    @Override
    public void removeUserFromList(String user) {
        log.addDebugLog("Removing user"+user);
    }

    @Override
    public void userLog(String ulog) {
        log.addDebugLog("UserLog"+ulog);
    }

    @Override
    public void addResult(DescriptionContent receivedContent) {
        log.addDebugLog("Received Content: "+receivedContent.getName());
    }

    @Override
    public void startChatWith(String user) {
        log.addDebugLog("Starting chat with user: "+user);
    }

}
